//
//  StoryBoard.swift
//  GSD-SwiftAPP
//
//  Created by Steve on 2019/10/11.
//  Copyright © 2019 faker. All rights reserved.
//

import Foundation

enum StoryBoard: String {
       case launch            = "launch"
       case tutorial          = "tutorial"
       case login             = "LoginVC"
       case home              = "Home"
       case find              = "Find"
       case fast              = "Fast"
       case mine              = "mine"
       
       case wallet            = "wallet"
       case share             = "share"
       case live              = "live"
       case live_mall         = "live_mall"
       case message           = "message"
       case order           = "order"
       
       var storyboard: UIStoryboard {
            return UIStoryboard(name: rawValue, bundle: nil)
        }
       
       func instance<T>() -> T {
              return storyboard.instantiateViewController(withIdentifier: String(describing: T.self)) as! T
          }
       
   
   }
